// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Vuex from 'vuex'
import store from './vuex/store'
import VueResource from 'vue-resource'
import Vue2Filters from 'vue2-filters' //过滤
import ElementUI from 'element-ui' //引入ElementUi !Important
import 'element-ui/lib/theme-default/index.css' //CSS需单独引入 !Important
import VueRouter from 'vue-router' //router
import Home from './components/Home.vue' //主页
import NotFoundComponent from './components/404.vue' //404页面
import $ from 'jquery'
import '../node_modules/bootstrap/dist/css/bootstrap.min.css'
import '../node_modules/bootstrap/dist/js/bootstrap.min.js'


Vue.config.productionTip = false

Vue.use(Vuex)
Vue.use(ElementUI)
Vue.use(VueResource)
Vue.use(VueRouter)
Vue.use(Vue2Filters)


const routes = [
  {
    path: '/',
    name: 'home',
    component: Home,
    hidden: true
  }]


var router = new VueRouter({
  routes
})

new Vue({
  el: "#app",
  router,
  store,
  render: h => h(App),
})


/* eslint-disable no-new */
